package com.xli.metadata.frameconfigcategory.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xli.metadata.frameconfigcategory.entity.FrameConfigCategory;
import jakarta.validation.constraints.NotNull;

import java.util.List;

public interface IFrameConfigCategoryService extends IService<FrameConfigCategory> {

    boolean insert(@NotNull FrameConfigCategory frameConfigCategory);

    boolean delete(@NotNull Long id);

    boolean update(@NotNull FrameConfigCategory frameConfigCategory);

    FrameConfigCategory find(@NotNull Long id);

    FrameConfigCategory findCategoryByName(@NotNull String name);

    List<FrameConfigCategory> findList(QueryWrapper<FrameConfigCategory> qw);

    Page<FrameConfigCategory> findList(QueryWrapper<FrameConfigCategory> qw, long current, long size);
}
